package com.snailct.bpp.commons.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Created by huangxa on 2016/6/19.
 */
public final class PropertiesUtil {
    private PropertiesUtil(){}
    private static Properties properties ;
    static {
        InputStream is = PropertiesUtil.class.getResourceAsStream("/config/client.properties");
        properties = new Properties();
        try {
            properties.load(is);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String getPropValue(String key){
        return properties.getProperty(key);
    }
}
